//
//  DropOrderTopCell.m
//  UEPersonage
//
//  Created by mac on 2017/9/18.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "DropOrderTopCell.h"



@interface DropOrderTopCell ()

@property (nonatomic, strong) UILabel         *titleLabel;
@property (nonatomic, strong) UILabel         *nameLabel;

@end

@implementation DropOrderTopCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self layoutUI];
    }
    return self;
}

- (void)layoutUI{

    UIView *line = [[UIView alloc]initWithFrame:CGRectMake(15, 15*Radio, 3*Radio, 15*Radio)];
    line.backgroundColor = RGB(0, 175, 237, 1);
    line.layer.cornerRadius = 1.5*Radio;
    line.layer.masksToBounds = YES;
    [self addSubview:line];
    
    _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(25, 15*Radio, 60, 15*Radio)];
    _titleLabel.backgroundColor = [UIColor colorWithWhite:1 alpha:0];
    _titleLabel.textColor = RGB(164, 164, 164, 1);
    _titleLabel.textAlignment = NSTextAlignmentLeft;
    _titleLabel.font = [UIFont systemFontOfSize:FLEXIBLE(12)];
    [self addSubview:_titleLabel];
    
    _nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(25, _titleLabel.frame.origin.y+_titleLabel.frame.size.height+10*Radio, Screen_Width - 50, 20*Radio)];
    _nameLabel.backgroundColor = [UIColor colorWithWhite:1 alpha:0];
    _nameLabel.textColor = RGB(47, 47, 47, 1);
    _nameLabel.textAlignment = NSTextAlignmentLeft;
    _nameLabel.font = [UIFont systemFontOfSize:FLEXIBLE(14)];
    [self addSubview:_nameLabel];
    
    UIView *dashedView = [[UIView alloc] initWithFrame:CGRectMake(15, _nameLabel.frame.origin.y+_nameLabel.frame.size.height+15*Radio, Screen_Width-30, 2)];
    dashedView.backgroundColor = [UIColor whiteColor];
    [self addSubview:dashedView];
    [YhxUtility drawDashLine:dashedView lineLength:2 lineSpacing:1 lineColor:RGB(246, 246, 246, 1)];

}



- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
